package com.nicy.angel.client;

import com.nicy.paradise.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "paradise-core")
public interface UserFeign {
    /**
     * 添加用户信息
     * @param user
     */
    @PostMapping("/user/add")
    void addUser(@RequestBody User user);

    /**
     * 获取用户
     * @return
     */
    @GetMapping("/user/get")
    User getUser();
}
